/ BBS in a Box 12
/ BBS in a box XII-1.iso / Files / Tele / C / Comet2.1.3.sit / include / key.h ![]() | < prev | next > |
MacBinary | 1990-08-03 | 1.6 KB | [TEXT/????] |
Confidence | Program | Detection | Match Type | Support |
---|---|---|---|---|
10% | dexvert | MacBinary (archive/macBinary) | fallback | Supported |
10% | dexvert | Jesper Olsen Module (music/jesperOlsen) | magic | Supported |
1% | dexvert | Text File (text/txt) | fallback | Supported |
100% | file | MacBinary II, Fri Aug 3 14:40:53 1990, modified Fri Aug 3 14:40:53 1990, creator '????', type ASCII, 1075 bytes "key.h" , at 0x4b3 382 bytes resource | default (weak) | |
99% | file | data | default | |
49% | TrID | Macintosh plain text (MacBinary) | default | |
33% | TrID | TTComp archive compressed (bin-2K) | default (weak) | |
16% | TrID | MacBinary 2 | default (weak) | |
0% | TrID | Sybase iAnywhere database files | default (weak) | |
100% | siegfried | fmt/1762 MacBinary (II) | default | |
100% | lsar | MacBinary | default |
id metadata | |
---|---|
key | value |
macFileType | [TEXT] |
macFileCreator | [????] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 6b 65 79 2e 68 00 | 00 00 00 00 00 00 00 00 |..key.h.|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 3f 3f 3f | 3f 00 00 00 00 00 00 00 |.TEXT???|?.......|
|00000050| 00 00 00 00 00 04 33 00 | 00 01 7e a2 df 75 b5 a2 |......3.|..~..u..|
|00000060| df 75 b5 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.u......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 a1 56 00 00 |........|.....V..|
|00000080| 0d 2f 2a 0d 09 43 6f 70 | 79 72 69 67 68 74 20 43 |./*..Cop|yright C|
|00000090| 6f 72 6e 65 6c 6c 20 55 | 6e 69 76 65 72 73 69 74 |ornell U|niversit|
|000000a0| 79 20 31 39 38 36 2e 20 | 20 41 6c 6c 20 72 69 67 |y 1986. | All rig|
|000000b0| 68 74 73 20 61 72 65 20 | 72 65 73 65 72 76 65 64 |hts are |reserved|
|000000c0| 2e 0d 0d 2a 2f 0d 0d 2f | 2a 20 6b 65 79 20 6d 61 |...*/../|* key ma|
|000000d0| 70 70 69 6e 67 20 76 61 | 72 73 20 2a 2f 0d 0d 23 |pping va|rs */..#|
|000000e0| 69 66 6e 64 65 66 20 5f | 4b 45 59 44 45 46 0d 23 |ifndef _|KEYDEF.#|
|000000f0| 64 65 66 69 6e 65 20 5f | 4b 45 59 44 45 46 0d 0d |define _|KEYDEF..|
|00000100| 2f 2a 20 61 63 74 69 6f | 6e 20 71 75 65 75 65 20 |/* actio|n queue |
|00000110| 68 61 6e 64 6c 69 6e 67 | 20 2a 2f 0d 2f 2a 09 64 |handling| */./*.d|
|00000120| 65 66 69 6e 65 20 74 68 | 65 20 74 6f 6b 65 6e 20 |efine th|e token |
|00000130| 74 79 70 65 20 72 65 74 | 75 72 6e 65 64 20 66 72 |type ret|urned fr|
|00000140| 6f 6d 20 74 68 65 20 75 | 73 65 72 20 69 6e 74 65 |om the u|ser inte|
|00000150| 72 66 61 63 65 20 72 6f | 75 74 69 6e 65 09 09 09 |rface ro|utine...|
|00000160| 2a 2f 0d 0d 73 74 72 75 | 63 74 20 74 6f 6b 65 6e |*/..stru|ct token|
|00000170| 20 7b 0d 09 75 6e 73 69 | 67 6e 65 64 20 63 68 61 | {..unsi|gned cha|
|00000180| 72 20 63 6c 61 73 73 3b | 0d 09 75 6e 73 69 67 6e |r class;|..unsign|
|00000190| 65 64 20 63 68 61 72 20 | 65 6e 74 72 79 3b 0d 7d |ed char |entry;.}|
|000001a0| 3b 0d 0d 74 79 70 65 64 | 65 66 20 73 74 72 75 63 |;..typed|ef struc|
|000001b0| 74 20 74 6f 6b 65 6e 20 | 54 4f 4b 45 4e 3b 0d 65 |t token |TOKEN;.e|
|000001c0| 78 74 65 72 6e 20 69 6e | 74 20 71 5f 63 6e 74 3b |xtern in|t q_cnt;|
|000001d0| 0d 0d 65 78 74 65 72 6e | 20 76 6f 69 64 20 6b 65 |..extern| void ke|
|000001e0| 79 70 75 74 61 63 74 69 | 6f 6e 28 29 3b 0d 65 78 |yputacti|on();.ex|
|000001f0| 74 65 72 6e 20 76 6f 69 | 64 20 70 75 74 61 63 74 |tern voi|d putact|
|00000200| 69 6f 6e 28 29 3b 0d 65 | 78 74 65 72 6e 20 73 74 |ion();.e|xtern st|
|00000210| 72 75 63 74 20 74 6f 6b | 65 6e 20 2a 20 67 65 74 |ruct tok|en * get|
|00000220| 61 63 74 69 6f 6e 28 29 | 3b 0d 0d 2f 2a 20 6b 65 |action()|;../* ke|
|00000230| 79 20 62 75 66 66 65 72 | 20 67 65 74 20 6b 65 79 |y buffer| get key|
|00000240| 20 73 74 72 75 63 74 20 | 2a 20 63 61 6c 6c 20 2a | struct |* call *|
|00000250| 2f 0d 73 74 72 75 63 74 | 20 6b 65 79 20 7b 0d 09 |/.struct| key {..|
|00000260| 63 68 61 72 20 6b 65 79 | 63 6f 64 65 3b 0d 09 63 |char key|code;..c|
|00000270| 68 61 72 20 74 68 65 63 | 68 61 72 3b 0d 09 69 6e |har thec|har;..in|
|00000280| 74 20 6d 6f 64 69 66 69 | 65 72 73 3b 0d 7d 3b 09 |t modifi|ers;.};.|
|00000290| 09 09 0d 0d 0d 2f 2a 20 | 6b 65 79 20 6d 61 63 72 |...../* |key macr|
|000002a0| 6f 20 69 74 65 6d 73 20 | 2a 2f 0d 0d 73 74 72 75 |o items |*/..stru|
|000002b0| 63 74 20 6b 65 79 78 6c | 69 73 74 20 7b 0d 09 69 |ct keyxl|ist {..i|
|000002c0| 6e 74 09 61 63 74 6c 65 | 6e 3b 09 09 09 09 09 2f |nt.actle|n;...../|
|000002d0| 2a 20 6e 75 6d 62 65 72 | 20 6f 66 20 61 63 74 69 |* number| of acti|
|000002e0| 6f 6e 73 20 69 6e 20 6b | 65 79 20 65 78 63 65 70 |ons in k|ey excep|
|000002f0| 74 69 6f 6e 20 72 65 73 | 6f 75 72 63 65 20 2a 2f |tion res|ource */|
|00000300| 0d 09 48 61 6e 64 6c 65 | 20 68 6b 65 79 61 63 74 |..Handle| hkeyact|
|00000310| 3b 09 09 09 09 2f 2a 20 | 68 61 6e 64 6c 65 20 74 |;..../* |handle t|
|00000320| 6f 20 6b 65 79 20 65 78 | 63 65 70 74 69 6f 6e 20 |o key ex|ception |
|00000330| 72 65 73 6f 75 72 63 65 | 20 2a 2f 0d 09 73 74 72 |resource| */..str|
|00000340| 75 63 74 20 6b 65 79 78 | 6c 69 73 74 20 2a 20 6e |uct keyx|list * n|
|00000350| 65 78 74 6b 65 79 3b 0d | 7d 3b 0d 0d 2f 2a 20 73 |extkey;.|};../* s|
|00000360| 74 72 75 63 74 75 72 65 | 20 6f 66 20 74 68 65 20 |tructure| of the |
|00000370| 6b 65 79 69 64 2f 61 63 | 74 69 6f 6e 20 6c 69 73 |keyid/ac|tion lis|
|00000380| 74 20 74 68 69 6e 67 20 | 68 6b 65 79 61 63 74 20 |t thing |hkeyact |
|00000390| 70 6f 69 6e 74 73 20 74 | 6f 20 2a 2f 0d 73 74 72 |points t|o */.str|
|000003a0| 75 63 74 20 6b 65 79 61 | 63 74 6c 69 73 74 20 7b |uct keya|ctlist {|
|000003b0| 0d 09 6c 6f 6e 67 09 6b | 65 79 69 64 3b 0d 09 73 |..long.k|eyid;..s|
|000003c0| 74 72 75 63 74 20 74 6f | 6b 65 6e 20 61 63 74 5b |truct to|ken act[|
|000003d0| 31 5d 3b 0d 7d 3b 0d 0d | 65 78 74 65 72 6e 20 63 |1];.};..|extern c|
|000003e0| 68 61 72 20 2a 20 6b 65 | 79 6e 61 6d 65 28 29 3b |har * ke|yname();|
|000003f0| 09 09 2f 2a 20 66 6f 72 | 77 61 72 64 20 64 65 63 |../* for|ward dec|
|00000400| 6c 61 72 61 74 69 6f 6e | 20 2a 2f 0d 65 78 74 65 |laration| */.exte|
|00000410| 72 6e 20 73 74 72 75 63 | 74 20 74 6f 6b 65 6e 20 |rn struc|t token |
|00000420| 2a 20 6b 65 79 78 66 69 | 6e 64 28 29 3b 09 09 2f |* keyxfi|nd();../|
|00000430| 2a 20 66 6f 72 77 61 72 | 64 20 64 65 63 6c 61 72 |* forwar|d declar|
|00000440| 61 74 69 6f 6e 20 2a 2f | 0d 65 78 74 65 72 6e 20 |ation */|.extern |
|00000450| 73 74 72 75 63 74 20 6b | 65 79 78 6c 69 73 74 20 |struct k|eyxlist |
|00000460| 2a 20 6b 65 79 78 70 74 | 72 28 29 3b 09 09 2f 2a |* keyxpt|r();../*|
|00000470| 20 66 6f 72 77 61 72 64 | 20 64 65 63 6c 61 72 61 | forward| declara|
|00000480| 74 69 6f 6e 20 2a 2f 0d | 65 78 74 65 72 6e 20 73 |tion */.|extern s|
|00000490| 74 72 75 63 74 20 6b 65 | 79 78 6c 69 73 74 20 2a |truct ke|yxlist *|
|000004a0| 20 6b 65 79 78 68 65 61 | 64 3b 0d 0d 23 65 6e 64 | keyxhea|d;..#end|
|000004b0| 69 66 0d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |if......|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00000510| 3b 09 09 2f 2a 20 6b 65 | 79 20 76 65 63 74 6f 72 |;../* ke|y vector|
|00000520| 20 74 72 61 70 20 69 73 | 20 69 6e 20 70 6c 61 63 | trap is| in plac|
|00000530| 05 6b 65 79 2e 68 02 00 | 00 00 50 61 72 74 53 49 |.key.h..|..PartSI|
|00000540| 54 78 00 00 00 00 00 00 | 00 00 00 01 8c 0a 00 00 |Tx......|........|
|00000550| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 a9 8d 3a 84 00 00 | 00 00 00 00 01 7e 61 63 |....:...|.....~ac|
|00000580| 74 69 6f 6e 20 71 75 65 | 75 65 20 68 61 6e 64 6c |tion que|ue handl|
|00000590| 69 6e 67 20 2a 2f 0d 2f | 2a 09 64 65 66 69 6e 65 |ing */./|*.define|
|000005a0| 20 74 68 65 20 74 6f 6b | 65 6e 20 74 79 70 65 20 | the tok|en type |
|000005b0| 72 65 74 75 72 6e 65 64 | 20 66 72 6f 6d 20 74 68 |returned| from th|
|000005c0| 65 20 75 73 65 72 20 69 | 6e 74 65 72 66 61 63 65 |e user i|nterface|
|000005d0| 20 72 6f 75 74 69 6e 65 | 09 09 09 2a 2f 0d 0d 73 | routine|...*/..s|
|000005e0| 74 72 75 63 74 20 74 6f | 6b 65 6e 20 7b 0d 09 75 |truct to|ken {..u|
|000005f0| 6e 73 69 67 6e 65 64 20 | 63 68 61 72 20 63 6c 61 |nsigned |char cla|
|00000600| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 ff 00 51 |...H..Mo|naco...Q|
|00000610| 00 00 00 14 00 01 03 c8 | 00 0a 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 58 00 00 00 06 | 00 04 00 28 00 02 01 84 |...X....|...(....|
|00000630| 02 02 00 28 00 02 01 84 | 02 02 a2 df 2f 65 00 00 |...(....|..../e..|
|00000640| 01 61 00 00 01 61 00 00 | 00 00 01 00 00 00 01 00 |.a...a..|........|
|00000650| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 1d d6 78 |...L...L|...2...x|
|00000660| 0a a8 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|00000670| 00 0a 03 ed ff ff 00 00 | 00 00 00 1f 09 ac 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+